package com.alkaid.novel.service;

import com.alkaid.commons.entity.Novel;
import com.alkaid.commons.ex.DataNotFoundException;

/**
 * @author Kylin
 */
public interface NovelDetailsService {
    /**
     * 获取小说正文
     *
     * @param id the id
     * @return the source
     * @throws DataNotFoundException 资源不存在
     */
    String getSource(Long id) throws DataNotFoundException;

    /**
     * 获取小说信息
     *
     * @param id novelId
     * @return the novel play
     * @throws DataNotFoundException 资源不存在
     */
    Novel getNovelWithDetailsByDetailId(Integer id) throws DataNotFoundException;
}
